package com.vanrui.pcp.autocode.model.entry;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import freemarker.template.TemplateModel;
import freemarker.template.Version;

public class Config {
	
	private Map<String, TemplateModel> variables;
	private Map<String, String> types;
	private Version version;
	private String templateDir;
	private String projectPath;
	private Map<String, Template> templates;
	private JdbcConfig jdbcConfig;
	private List<Table> tables = new ArrayList<Table>();
	
	public void addTable(Table table){
		this.tables.add(table);
	}
	
	public Map<String, TemplateModel> getVariables() {
		return variables;
	}
	public void setVariables(Map<String, TemplateModel> variables) {
		this.variables = variables;
	}
	public Map<String, String> getTypes() {
		return types;
	}
	public void setTypes(Map<String, String> types) {
		this.types = types;
	}
	public Version getVersion() {
		return version;
	}
	public void setVersion(Version version) {
		this.version = version;
	}
	public String getTemplateDir() {
		return templateDir;
	}
	public void setTemplateDir(String templateDir) {
		this.templateDir = templateDir;
	}
	public JdbcConfig getJdbcConfig() {
		return jdbcConfig;
	}
	public void setJdbcConfig(JdbcConfig jdbcConfig) {
		this.jdbcConfig = jdbcConfig;
	}
	public Map<String, Template> getTemplates() {
		return templates;
	}
	public void setTemplates(Map<String, Template> templates) {
		this.templates = templates;
	}
	public String getProjectPath() {
		return projectPath;
	}
	public void setProjectPath(String projectPath) {
		this.projectPath = projectPath;
	}

	public List<Table> getTables() {
		return tables;
	}

	public void setTables(List<Table> tables) {
		this.tables = tables;
	}

}
